$('.alert button').on('click', function () {
    if($(this).hasClass('focus')) {
        return
    }
    $('.alertItems').empty()

    $(this).removeClass('nofocus').addClass('focus')
    $(this).siblings().addClass('nofocus').removeClass('focus')
    switch($(this).attr('id')) {
        case '5' : callBack.runMeetingList(); break;
        case '2' : callBack.runAlertList(); break;
        // case '1' : busHomeList(); break;
        case '0' : callBack.runAlertList(); callBack.runMeetingList(); break;
        default:
            break;
    }
    
})


$('.confirm').on('click', function () {
    if(!datas.checkOrder.responseOfficerId) {
        return
    }
    datas.handleAlert2().then(function (res) {
        $.each($('.alertItems .item'), function(i, v) {
            if($(v).attr('warningEventId') === datas.checkOrder.warningEventId) {
                $(v).css({
                    display: 'none'
                })
            }
        })
        $('.successBig').show()
        setTimeout(function () {
            $('.successBig').hide()
        }, 1.5e3)
        datas.checkOrder.responseOfficerId = ''
        $('.getAllOperationGroup').hide()
        scroll.refresh()
        // $('.operatorItem').empty()
    })
})

$('.cancel').on('click', function () {
    $('.getAllOperationGroup').hide()
    $('.operatorItem').empty()
    datas.operators = []
})

setTimeout(function () {
    scroll = new IScroll('.alertItem', {
        mouseWheel: true,
        // scrollbars: true
    })
}, 1e2)




callBack.changeClass()
callBack.runAlertList()
callBack.runMeetingList()
callBack.runBusRun()

